package org.alex.samples.service;

import org.alex.samples.dao.IScoreDao;
import org.alex.samples.model.ExamScoreVO;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class IScoreServiceImpl implements IScoreService{

	@Autowired
	private IScoreDao scoreDao;
	
	@Override
	public ExamScoreVO getScoreById(Integer id) throws Exception {
		ExamScoreVO scoreVO=new ExamScoreVO();
		BeanUtils.copyProperties(this.scoreDao.getScoreById(id), scoreVO);
		return scoreVO;
	}

}
